<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">天网行动
  </div>
  <table class="table table-bordered">
    <thead>
      <tr>
        <th class="bg-primary text-center">项目主题</th>
        <th class="bg-primary text-center">标准动作</th>
        <th class="bg-primary text-center">媒体名称</th>
        <th class="bg-primary text-center">发布时间段</th>
        <th class="bg-primary text-center">发布频次</th>
        <th class="bg-primary text-center">结算申请费用</th>
        <th class="bg-primary text-center">自证照片</th>
        <th class="bg-primary text-center">审核结果</th>
        <?php if (in_array($action, array('edit'))) {?>
        <th class="bg-primary text-center">操作</th>
        <?php } ?>
        <?php if ( in_array($action, array('audit')) ) {?>
        <th class="bg-primary text-center">项目一键审核</th>
        <?php } ?>
      </tr>
    </thead>
    <tbody>
    <?php foreach($netList as $k => $v): ?>
      <tr>
        <td class="text-center"><?php echo $v['theme']; ?></td>
        <td class="text-center"><?php echo $v['actionTypeStr']; ?></td>
        <td class="text-center"><?php echo $v['mediaName'] ?></td>
        <td class="text-center"><?php echo $v['startTime'].'至'.$v['endTime'] ?></td>
        <td class="text-center"><?php echo $v['frequency'] ?></td>
        <td class="text-center"><?php echo $v['settleApply'] ?></td>
        <td class="text-center col-sm-2">
            <?php if ($v['fileData']) {?>
            <div style="width:200px;overflow:hidden;">
            <a target="_blank" href="<?=$v['fileData']['viewPath']?>" class="thumbnail">
              <img class="carousel-inner img-responsive img-rounded" src="<?=$v['fileData']['viewPath']?>">
            </a>
            </div>
            <?php } ?>
        </td>
        <td class="text-center"><?php echo $v['settleAuditStr'] ?></td>
        <?php if (in_array($action, array('edit'))) {?>
        <td class="text-center">
          <?php if (in_array($v['settleAuditRs'], array(-1,0,3) )) {?>
          <a class="btn btn-default" onclick="newWindow('天网行动结算申请','<?=printUrl('SingleNet','settleSubmit', array('id'=>$v['id']))?>',1000,400)" role="button">结算申请</a>
          <?php } ?>
        </td>
        <?php } ?>
        <?php if (in_array($action, array('audit'))) {?>
        <td class="text-center">
          <?php
          $options = $this->config->item('settleAuditOptions');
          $extra = ' class="form-control settleAuditRs" style="width:70px;" money="'.($v['settleAudit'] ? $v['settleAudit'] : $v['settleApply']).'" ';
          if ($v['settleAuditDetail'] == 1 || $this->user['userRole'] < $v['settleAuditRole']) {
            $extra .= " disabled";
          }
          echo form_dropdown('net['.$v['id'].'][settleAuditRs]', $options, $v['settleAuditRs'], $extra);
          ?>
        </td>
        <?php } ?>
      </tr>
    <?php endforeach; ?>
    </tbody>
  </table>
</div>